﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GarageGames.Torque.Util
{
    // This interface is core to the Observer Pattern. It provides method signatures
    // to allow observers to subscribe and unsubscribe for notification of changes.
    public interface IObservable
    {
        // All observation subjects (classes that implement this interface) must provide
        // an implementation for each of these methods that allows observers to register
        // for change notifications.
        void Subscribe(INotifiable observer);

        void Unsubscribe(INotifiable observer);
    }
}
